import React from 'react';
import ReactDOM from 'react-dom';
import App from './App'

import store from './redux/store'
import {Provider} from 'react-redux'


// 渲染页面后监听
// ReactDOM.render(<App/>, document.getElementById('root'));
ReactDOM.render(
		<Provider store={store}>
			<App/>
		</Provider>
				,
		document.getElementById('root')
		
	);


// store.subscribe(()=>{ 
// 	ReactDOM.render(<App/>,document.getElementById('root'))
// })